<?php

/**
 * TrabajoMaterial form.
 *
 * @package    zing
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class TrabajoMaterialForm extends BaseTrabajoMaterialForm
{
  public function configure()
  {
      unset($this['updated_at']);
      unset($this['created_at']); 
      
      
      $this->widgetSchema['cantidad']->setAttribute('size','2');
      $this->widgetSchema['idMaterial']->setAttribute("class","combobox");      
      
      
      $this->validatorSchema['idTrabajo']->setOption('required',false);
      
      $this->widgetSchema['idTrabajo'] = new sfWidgetFormInputHidden();      

      $this->setDefault('cantidad',0);            
  }
}
